package com.www.applyword.adapter;

import android.content.Context;

import com.classic.adapter.BaseAdapterHelper;
import com.classic.adapter.CommonRecyclerAdapter;
import com.www.applyword.R;
import com.www.applyword.bean.HotJobBean;

/**
 * author : huang
 * date   : 2019/10/21 0021 15:06
 * version: 1.0
 * @author Administrator
 */
public class HomeAdapter extends CommonRecyclerAdapter<HotJobBean> {
    public HomeAdapter(Context context) {
        super(context, R.layout.item_list_home);
    }


    @Override
    public void onUpdate(BaseAdapterHelper helper, HotJobBean item, int position) {
        if (position == 0){
            helper.setImageResource(R.id.iv,R.mipmap.home1);
        }else if (position == 1){
            helper.setImageResource(R.id.iv,R.mipmap.home2);
        }else {
            helper.setImageResource(R.id.iv,R.mipmap.home3);
        }
    }
}

